package cglib;

import net.sf.cglib.proxy.Enhancer;
import sun.applet.Main;

/**
 * @Author:zimmor
 * @Date: 2021/3/25 13:01
 * @Description 使用enhancer的静态方法创建代理对象
 * @version: 1.0.0
 */

public class DynamicProxyDemo3 {
    public static void main(String[] args) {
       Buyer proxy = (Buyer) Enhancer.create(Buyer.class, new CglibMethodInterceptor());
       proxy.buyAK("德国");
    }
}
